/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f7fa;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f7fa;
}

.login-form {
    width: 400px;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 主容器布局 */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: 240px;
    background-color: #2d3a4b;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.logo {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #3e4e61;
}

.logo h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.menu {
    flex: 1;
    padding: 20px 0;
}

.el-menu-vertical-demo {
    background-color: transparent !important;
}

.el-menu-item {
    color: #a8b7c7 !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 20px !important;
}

.el-menu-item:hover {
    background-color: #3e4e61 !important;
    color: #fff !important;
}

.el-menu-item.is-active {
    background-color: #1890ff !important;
    color: #fff !important;
}

.user-info {
    padding: 20px;
    border-top: 1px solid #3e4e61;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1890ff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.user-avatar i {
    font-size: 20px;
    color: #fff;
}

.user-details {
    flex: 1;
}

.username {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.logout {
    font-size: 12px;
    color: #a8b7c7;
    cursor: pointer;
}

.logout:hover {
    color: #1890ff;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-nav {
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.current-time {
    font-size: 14px;
    color: #606266;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 仪表盘样式 */
.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 24px;
    color: #fff;
}

.card-icon.bg-blue {
    background-color: #1890ff;
}

.card-icon.bg-green {
    background-color: #52c41a;
}

.card-icon.bg-purple {
    background-color: #722ed1;
}

.card-icon.bg-orange {
    background-color: #fa8c16;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 14px;
    color: #606266;
    margin-bottom: 5px;
}

.card-value {
    font-size: 24px;
    font-weight: 500;
    color: #303133;
}

.recent-appointments {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-appointments h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #303133;
}

/* 页面通用样式 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 18px;
    color: #303133;
    margin: 0;
}

.search-bar {
    margin-bottom: 20px;
}

.pagination {
    margin-top: 20px;
    text-align: right;
}

/* 详情页面样式 */
.detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    display: inline-block;
    width: 100px;
    color: #606266;
    font-weight: 500;
}

.detail-value {
    color: #303133;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-cards {
        flex-wrap: wrap;
    }
    
    .card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .card {
        flex: 0 0 100%;
    }
}